package com.demo;

import lombok.RequiredArgsConstructor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.shardingsphere.driver.api.yaml.YamlShardingSphereDataSourceFactory;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.sql.DataSource;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.sql.SQLException;

import static org.springframework.util.ResourceUtils.getFile;

//@MapperScan(basePackages = "com.demo.mapper")
@SpringBootApplication
public class DemoApplication {

    public static void main(String[] args) throws IOException, SQLException {
        SpringApplication.run(DemoApplication.class, args);
    }

}
